<template>
  <div>
    <!-- 核心展示区域 -->
    <router-view></router-view>

    <!-- 底部 -->
    <div class="box4">
      <bottom :ac="active"></bottom>
    </div>
  </div>
</template>

<script>
export default {
  name: "Lindex",
  components: {
    bottom: () => import("../components/Bottom.vue"),
  },
  data() {
    return {
      active: 0
    }
  },
  mounted() {
    console.log(this.$route.path)
    if(this.$route.path == "/frontHome/index/"){
      this.active=0;
    }
    if(this.$route.path == "/frontHome/lncrease"){
      this.active=1;
    }
    if(this.$route.path == "/frontHome/mine"){
      this.active=2;
    }
  }

};
</script>

<style scoped>

</style>